.page-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100vw;
  height: 100vh;
}

.page {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100vw;
  height: 100vh;
  padding: var(--page-padding);
  padding-top: var(--status-bar-height);
}

.no-scrollbar {
  overflow: scroll;
  &::-webkit-scrollbar {
    display: none;
  }
}

.new-alarm-note-wrapper {
  position: relative;
  width: 100%;
  height: 100%;

  .new-alarm-note-content {
    background-color: #fff;
    width: calc(100% - 4rem);
    padding: 2rem;
    margin: 2rem;
    border-radius: 3rem;
    position: absolute;
    bottom: 0;
    left: 0;

    .title {
      width: 100%;
      text-align: center;
      margin-bottom: 1.6rem;
      font-size: 1.6rem;
    }

    .input-box {
      border-radius: 2rem;
      border: 2px solid var(--primary-color);
      background-color: #00000008;
      padding: 0.8rem;

      input {
        width: 100%;
        padding: 0.8rem;
        border: none;
        background-color: transparent;
        outline: none;
      }
    }

    .btn-row {
      display: flex;
      justify-content: space-between;
      margin-top: 1.2rem;
      button {
        border: none;
        flex: 1;
        height: 4rem;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 999rem;
      }
      .ml-1 {
        margin-left: 1rem;
      }
      .primary-btn {
        background-color: var(--primary-color);
        color: #fff;
      }
    }
  }
}

.repeat-time-wrapper {
  position: relative;
  width: 100%;
  height: 100%;

  .repeat-time-content {
    background-color: #fff;
    width: calc(100% - 4rem);
    margin: 2rem;
    border-radius: 3rem;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 3rem 0;

    .repeat-time-item {
      height: 4.4rem;
      display: flex;
      align-items: center;
      padding: 0 2rem;
      font-size: 1.4rem;
    }

    .repeat-time-item-active {
      background-color: #4481eb11;
      color: var(--primary-color);
    }
  }
}

.page--alarm {
  padding: 0 1.2rem;
  padding-bottom: 10rem;
  position: relative;
  width: 100%;
  height: calc(100vh - 13rem);
  overflow-y: scroll;

  .group {
    .group-title {
      margin-bottom: 1.2rem;
      font-size: 1.4rem;
      color: #aaa;
      margin-left: 1.2rem;
    }
  }
}

.page--clock {
  padding: 0 1.2rem;
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: scroll;

  .clock-item-wrapper {
    margin-top: 6rem;
  }
}

.page--stopwatch {
  padding: 0 1.2rem;
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
}

.page--timer {
  padding: 0 1.2rem;
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: scroll;

  .hide {
    display: none !important;
  }

  .time-selector-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 6rem;

    .middle-item {
      border-left: 1px solid #eee;
      border-right: 1px solid #eee;
    }
  }

  .time-start-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 6rem;
  }
}

.page--add-alarm {
  padding: 0 1.2rem;
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  display: flex;
  flex-direction: column;

  .fixed-module {

  }

  .scroll-module {
    flex: 1;
    overflow-y: scroll;
  }

  .small-title {
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    color: #aaa;
    margin-left: 1.2rem;
  }

  .cpn--module-box {
    margin-bottom: 2rem;

    .split-line {
      height: 1px;
      width: 100%;
      background-color: #eee;
      margin: 2rem 0;
    }
  }

  .cpn--header {
    .header-row {
      display: flex;
      align-items: center;
      height: 8rem;
      width: 100%;
      padding: 0 2rem;

      .center {
        flex: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;

        .header-title {
          font-size: 1.6rem;
          font-weight: bold;
        }
      }

      .left {
        flex: 1;
      }
      .right {
        flex: 1;
        display: flex;
        justify-content: flex-end;
      }
    }
  }

  .cpn--timer-selector {
    display: flex;
    width: 100%;
    height: fit-content;
    justify-content: center;

    .divider {
      // height: 30rem;
      width: 1px;
      background-color: #eee;
      align-self: stretch;
      margin: 0 2rem;
    }

    .cpn--number-slide-selector {
      .cover-top {
        background-image: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0));
      }
      .cover-bottom {
        background-image: linear-gradient(to top, #fff, rgba(255, 255, 255, 0));
      }
    }
  }

  .cpn--ringtone-selector {
    margin-top: 2rem;
    padding: 0 1.2rem;

    .ringtone-selector {
      display: flex;
      justify-content: space-between;
      padding: 0 1.2rem;

      .select-box-wrapper-active {
        border: 2px solid var(--primary-color) !important;
      }
      .select-box-wrapper {
        width: calc(100% / 3 - 0.5rem);
        height: 10rem;
        border: 2px solid transparent;
        border-radius: 2.2rem;
        padding: .4rem;

        .weather-box {
          background-image: linear-gradient(to bottom left, #4481eb 0%, #04befe 100%);
        }

        .el-box {
          background-image: linear-gradient(to top right, #ffc271 0%, #ff9a44 100%);
        }

        .more-box {
          background-image: linear-gradient(-225deg, #B19FFF 48%, #B19FFF 100%);
        }

        .select-box {
          color: #fff;
          width: 100%;
          height: 100%;
          background-color: aqua;
          border-radius: 1.6rem;
          display: flex;
          flex-direction: column;

          .icon-wrapper {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
          }

          .box-bottom {
            flex: 1;
            display: flex;
            // align-items: center;
            // justify-content: center;
            flex-direction: column;
            align-items: center;

            .small-icon-wrapper {
              background-color: #ffffff88;
              width: 1.8rem;
              height: 1.8rem;
              display: flex;
              align-items: center;
              justify-content: center;
              border-radius: 100rem;
              margin-top: .2rem;
            }
          }
        }
      }
    }
  }

  .cpn--other-setting {
    margin-top: 2rem;
    padding: 0 1.2rem;

    .setting-item-wrapper {
      .setting-item {
        width: 100%;
        min-height: 6rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1.2rem;

        .setting-item-title {
          font-size: 1.6rem;
          font-weight: bold;
        }

        .setting-item-content {
          display: flex;
          align-items: center;
          font-size: 1.4rem;
          color: #00000066;

          .icon-wrapper {
            height: 100%;
            align-self: stretch;
            display: flex;
            align-items: center;
          }
        }
      }

      .fake-input-box {
        background-color: #eee;
        border-radius: 2rem;
      }
    }
  }
}

.page--select-city {
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  padding: 0 2rem;
  padding-top: var(--status-bar-height);
  display: flex;
  flex-direction: column;
  .cpn--header {
    .title-bar {
      display: flex;
      justify-content: space-between;
      margin-bottom: 1.6rem;
      .title-wrapper {
        text-align: center;
      }
      .title {
        font-size: 2rem;
      }
      .second-title {
        color: #00000099;
        font-size: 1.8rem;;
      }
    }
  }

  .cpn--search-bar {
    width: 100%;

    .fake-input {
      background-color: #00000008;
      padding: 1rem 1.6rem;
      font-size: 1.4rem;
      color: #00000033;
      border-radius: 999em;
      display: flex;
      align-items: center;

      .fake-placeholder {
        margin-left: 1.6rem;
        flex: 1;
      }
    }

    .real-input-wrapper {
      display: flex;
      width: 100%;
      align-items: center;

      .input-box {
        background-color: #00000008;
        padding: 1rem 1.6rem;
        font-size: 1.4rem;
        color: #00000033;
        border-radius: 999em;
        display: flex;
        align-items: center;
        flex: 1;

        .input {
          outline: none;
          background-color: transparent;
          margin-left: 1.6rem;
          height: 100%;
          display: flex;
          align-items: center;
          border: none;
          width: 100%;
          flex: 1;
        }
      }

      .btn-cancel {
        color: var(--primary-color);
        font-size: 1.4rem;
        margin-left: 1.6rem;
      }
    }
  }

  .cpn--letter-indicator {
    position: fixed;
    right: 1.6rem;
    margin-top: 3rem;
    border-radius: 999rem;
    background-color: #00000008;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    width: 2.2rem;
    z-index: 999;

    .letter {
      display: inline-block;
      margin: 0.4rem;
      color: #00000099;
      font-weight: 100;
      text-align: center;
      font-size: 0.8rem;
    }
  }

  .city-list-wrapper {
    position: relative;
    flex: 1;
    overflow-y: scroll;
    margin-top: 2rem;
    &::-webkit-scrollbar {
      display: none;
    }
    .city-list {
      .city-item {
        padding: 1.6rem 0;
      }

      .city-name {
        font-size: 2rem;
      }
    } 
  }
}

.page--rest-time-magnage {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: var(--page-padding);
  padding-top: var(--status-bar-height);
  .cpn--header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
  }

  .page-title {
    font-size: 2.4rem;
    font-weight: 100;
    margin-bottom: 3rem;
    position: sticky;
  }

  .page-content {
    flex: 1;
  }

  .cpn--time-setting-module {
    .switch-row {
      display: flex;
      justify-content: space-between;
      align-items: center;

      .title {
        font-size: 1.6rem;
      }
      .desc {
        font-size: 1.4rem;
        color: #00000066;
      }
    }

    .time-setting-row {
      display: flex;
      margin: 4rem 0;
      border-bottom: 1px solid #eee;
      padding-bottom: 4rem;
      .col-item {
        flex: 1;
        text-align: center;

        .title {
          margin-bottom: 1.6rem;
          color: #00000099;
          font-size: 1.4rem;
          display: flex;
          align-items: center;
          justify-content: center;

          .text {
            display: inline-block;
            margin-left: 0.5rem;
          }
        }

        .time {
          font-size: 4rem;
        }
      }
    }
  }

  .cpn--sleep-analyse-module {
    .title {
      font-size: 1.4rem;
      color: #00000099;
    }

    .graph-area {
      height: 20rem;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #00000099;
    }

    .time-stamp {
      border-top: 1px dashed #eee;
      padding-top: 0.6rem;
      font-size: 1rem;
      color: #00000066;
      display: flex;
      justify-content: space-between;
    }

    .tip-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 2rem;

      .title {
        font-size: 1.8rem;
        color: var(--primary-color);
      }

      .desc {
        font-size: 1.2rem;
        color: #00000066;
      }

      .btn-open {
        background-color: #00000008;
        color: #00000099;
        padding: 0.8rem 1.6rem;
        font-size: 1.2rem;
        border-radius: 9999rem;
      }
    }
  }
}

.page--life-early-report {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  .cpn--header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
  }

  .page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
  }

  .cpn--setting-module {
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    .switch-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 2rem 0;

      .title {
        font-size: 1.6rem;
      }
      .desc {
        font-size: 1.4rem;
        color: #00000066;
      }
    }
  }

  .cpn--count-module {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: scroll;

    .title {
      font-size: 1.4rem;
      color: #00000099;
      margin-bottom: 2rem;
    }

    .list-wrapper {
      flex: 1;
      overflow-y: scroll;
    }
  }

  .cpn--count-item {
    color: #00000066;
    .time {
      margin-left: 1.6rem;
      .dot {
        display: inline-block;
        width: 0.8rem;
        height: 0.8rem;
        border: 1px solid #00000066;
        border-radius: 4rem;
        margin-right: 0.6rem;
      }
    }
    .detail {
      margin-left: 2rem;
      padding-left: 2rem;
      border-left: 1px solid #ccc;
      display: flex;
      .data-box {
        flex: 1;
        .tip {
          margin: 1rem 0;
        }

        .data {
          font-size: 2.2rem;
        }
      }
    }
  }
  
}

.page--setting {
  background-color: #fff;
  display: flex;
  flex-direction: column;

  .cpn--header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
  }

  .cpn--setting-item {
    .setting-item-title {
      font-size: 1.2rem;
      color: #00000088;
      padding-top: 1rem;
    }

    .setting-item-row {
      display: flex;
      justify-content: space-between;
      height: 6rem;
      align-items: center;

      .setting-name {
        font-size: 1.6rem;

        .name-desc {
          font-size: 1.3rem;
          color: #00000066;
          margin-top: .2rem;
        }
      }

      .setting-content {
        font-size: 1.4rem;
        color: #00000088;
        display: flex;
        align-items: center;

        .content-text {
          margin-right: .8rem;
        }
      }

    }

    .border-bottom {
      border-bottom: .1rem solid #00000033;
      margin: 1.6rem 0;
    }
  }

  .page-title {
    font-size: 2.4rem;
    font-weight: 100;
    margin-bottom: 3rem;
    position: sticky;
  }

  .page-content-wrapper {
    display: flex;
    flex-direction: column;
    overflow: scroll;
    flex: 1;
  }

  .page-content {
    display: flex;
    flex-direction: column;
    overflow: scroll;
  }
}